module.exports = class extends think.Model {
    get relation() {
        return {
            custom_sizeinfo: {
                type: think.Model.HAS_MANY,
                key: 'id',
                fKey: 'csid'
            },
            category: {
                type: think.Model.BELONG_TO,
                key: 'classid',
                fKey: 'id',
                field:'id,name,picurl'
            },
            size: {
                type: think.Model.BELONG_TO,
                key: 'sizeid',
                fKey: 'sizeid',
                field:'sizeid,size'
            }
        };
    }
};
